import { createApp } from "vue";
import App from "./App.vue";
import router from "@/router";
import VueAMap, { initAMapApiLoader } from "@vuemap/vue-amap";
import "@vuemap/vue-amap/dist/style.css";
import "./styles/index.scss";
import "amfe-flexible";
/** 部分AMap typescript的类型 */
import "@amap/amap-jsapi-types";

initAMapApiLoader({
  key: "8f51a41b0f5997b3eabbc6026bf4f85f",
  plugins: [
    "AMap.Autocomplete",
    "AMap.PlaceSearch",
    "AMap.Scale",
    "AMap.OverView",
    "AMap.ToolBar",
    "AMap.MapType",
    "AMap.PolyEditor",
    "AMap.CircleEditor",
    "AMap.Geocoder",
    "AMap.Geolocation"
  ],
});

createApp(App).use(VueAMap).use(router).mount("#app");
